package com.mallcloud.mall.mall.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@ApiModel(value = "MallMerchantModel", description = "商户")
@Data
@TableName(value = "MALL_MERCHANT", autoResultMap = true)
public class MallMerchantModel extends BaseModel {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value="商户ID")
    private Long id;

    @ApiModelProperty(value="商户名称")
    private String name;

    @ApiModelProperty(value="商户分类 字典:MERCHANT_CATEGORY")
    private Long categoryId;

    @ApiModelProperty(value="商户类型 字典:MERCHANT_TYPE")
    private Long typeId;

    @ApiModelProperty(value="商户姓名")
    private String realName;

    @ApiModelProperty(value="商户邮箱")
    private String email;

    @ApiModelProperty(value="商户手机号")
    private String phone;

    @ApiModelProperty(value="手续费(%)")
    private Integer handlingFee;

    @ApiModelProperty(value="商户关键字")
    private String keywords;

    @ApiModelProperty(value="省")
    private String province;

    @ApiModelProperty(value="市")
    private String city;

    @ApiModelProperty(value="区")
    private String district;

    @ApiModelProperty(value="商户详细地址")
    private String addressDetail;

    @ApiModelProperty(value="纬度")
    private String latitude;

    @ApiModelProperty(value="经度")
    private String longitude;

    @ApiModelProperty(value="是否自营：0-自营，1-非自营")
    private Boolean isSelf;

    @ApiModelProperty(value="是否推荐:0-不推荐，1-推荐")
    private Boolean isRecommend;

    @ApiModelProperty(value="商户开关:0-关闭，1-开启")
    private Boolean isSwitch;

    @ApiModelProperty(value="商品审核开关:0-关闭，1-开启")
    private Boolean productSwitch;

    @ApiModelProperty(value="自提开关:0-关闭，1-开启")
    private Boolean isTakeTheir;

    @ApiModelProperty(value="备注")
    private String remark;

    @ApiModelProperty(value="资质图片")
    private String qualificationPicture;

    @ApiModelProperty(value="商户背景图")
    private String backImage;

    @ApiModelProperty(value="商户头像")
    private String avatar;

    @ApiModelProperty(value="商户logo（横）")
    private String rectangleLogo;

    @ApiModelProperty(value="商户封面图")
    private String coverImage;

    @ApiModelProperty(value="商户街背景图")
    private String streetBackImage;

    @ApiModelProperty(value="商户简介")
    private String intro;

    @ApiModelProperty(value="复制商品数量")
    private Integer copyProductNum;

    @ApiModelProperty(value="商户余额")
    private BigDecimal balance;

    @ApiModelProperty(value="商户星级1-5")
    private Integer starLevel;

    @ApiModelProperty(value="pcBanner")
    private String pcBanner;

    @ApiModelProperty(value="pc背景图")
    private String pcBackImage;

    @ApiModelProperty(value="商户创建类型：admin-管理员创建，apply-商户入驻申请")
    private String createType;

    @ApiModelProperty(value="排序")
    private Integer sortOrder;

}
